<?php

namespace App\Admin\Controllers;

use App\Http\Controllers\Controller;
use App\Util\ComUtil;
use Encore\Admin\Facades\Admin;

class OfficialImController extends Controller
{
    public function index()
    {
        $devEnv = 1;
        $options = [
            'title' => '极速蜜聊',
            'debug' => $devEnv ? 1 : 0,
            'baseHost' => $devEnv ? '127.0.0.1' : 'api.nightvoice.cn',
            // 'httpProt' => env('APP_ENV') == 'local' ? 'http' : 'https',
            'httpProt' => 'http',
            'adminUser' => Admin::user()->name,
            'adminId' => Admin::user()->id,
        ];
        return view('im', $options);
    }
}
